package com.bxs.config;

import com.bxs.sniffer.BaseSniffer;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.yaml.snakeyaml.Yaml;

import java.io.File;

/**
 * @author dream
 * @title: IdsConfig
 * @projectName ids_v0_1
 * @description: TODO
 */
// 应用配置信息类
@Service
@Data
public class IdsConfig {
    // 抓包长度
    public static int snapLen = 65536;
    // 超时时间
    public static int timeout = 10;
    // 抓包数量
    public static int count = 65536;

    // 是否保存数据报到文件
    public boolean isSave = false;
    // 默认保存到文件的路径
    @Value(value = "${ids.default-file}")
    public String defaultFile = null;
    //
//    public static boolean isSaveToDB = true;
//    public static boolean isSaveToLog = true;

    // 监听网卡的ip地址
    @Value(value = "${ids.interface-address-name}")
    public String interfaceAddressName = null;

    public IdsConfig(){
    }

    public IdsConfig(File file){}


}
